package cc.comac.mom.entity;

import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cc.comac.mom.bean.QualityAttachment;
import cc.comac.mom.entity.base.BaseResultEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@TableName("quality_qar_basic_standard_check")
@Data
public class QualityQarBasicStandardCheckEntity extends BaseResultEntity  {/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@TableField("check_id")
	@TableId(value = "check_id",type = IdType.INPUT)
	private long id;
	private long qarBasicStandardId;
	private String checkItem;
	private String checkDetail;
	private long checkParentId;
	private long groupId;
	@TableField(exist = false)
	private List<Long> attachmentIds;
	
	@TableField(exist = false)
	private long attachmentId;
	private String checkItemValue;
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		QualityQarBasicStandardCheckEntity other = (QualityQarBasicStandardCheckEntity) obj;
		if (checkDetail == null) {
			if (other.checkDetail != null)
				return false;
		} else if (!checkDetail.equals(other.checkDetail))
			return false;
		return true;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((checkDetail == null) ? 0 : checkDetail.hashCode());
		return result;
	}
	


}
